package com.sh4.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.sh4.entity.Ifiles;
import com.sh4.service.IfilesService;

@RestController
@RequestMapping("ifile")
public class IfileController {
	
	@Autowired
	IfilesService ifilesService;
	
	@RequestMapping(value="/",method=RequestMethod.GET)
	public List<Ifiles> getFiles(@RequestParam String linkId){
		
		return ifilesService.getIFiles(linkId);
	}

}
